package com.scgl.process.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scgl.process.mapper.ScglProcessMapper;
import com.scgl.process.domain.ScglProcess;
import com.scgl.process.service.IScglProcessService;

/**
 * 工序任务单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-29
 */
@Service
public class ScglProcessServiceImpl implements IScglProcessService 
{
    @Autowired
    private ScglProcessMapper scglProcessMapper;

    /**
     * 查询工序任务单
     * 
     * @param processId 工序任务单主键
     * @return 工序任务单
     */
    @Override
    public ScglProcess selectScglProcessByProcessId(String processId)
    {
        return scglProcessMapper.selectScglProcessByProcessId(processId);
    }

    /**
     * 查询工序任务单列表
     * 
     * @param scglProcess 工序任务单
     * @return 工序任务单
     */
    @Override
    public List<ScglProcess> selectScglProcessList(ScglProcess scglProcess)
    {
        return scglProcessMapper.selectScglProcessList(scglProcess);
    }

    /**
     * 新增工序任务单
     * 
     * @param scglProcess 工序任务单
     * @return 结果
     */
    @Override
    public int insertScglProcess(ScglProcess scglProcess)
    {
        return scglProcessMapper.insertScglProcess(scglProcess);
    }

    /**
     * 修改工序任务单
     * 
     * @param scglProcess 工序任务单
     * @return 结果
     */
    @Override
    public int updateScglProcess(ScglProcess scglProcess)
    {
        return scglProcessMapper.updateScglProcess(scglProcess);
    }

    /**
     * 批量删除工序任务单
     * 
     * @param processIds 需要删除的工序任务单主键
     * @return 结果
     */
    @Override
    public int deleteScglProcessByProcessIds(String[] processIds)
    {
        return scglProcessMapper.deleteScglProcessByProcessIds(processIds);
    }

    /**
     * 删除工序任务单信息
     * 
     * @param processId 工序任务单主键
     * @return 结果
     */
    @Override
    public int deleteScglProcessByProcessId(String processId)
    {
        return scglProcessMapper.deleteScglProcessByProcessId(processId);
    }
}
